const {
    override,
    fixBabelImports,
    addLessLoader,
    addBabelPlugins,
} = require("customize-cra");


module.exports = override(
    ...addBabelPlugins(
        [
            '@babel/plugin-proposal-decorators',
            { legacy: true }
        ]
    ),
    fixBabelImports('import', {
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: true
    }),
    addLessLoader(
        {
            javascriptEnabled: true,
            modifyVars: { '@brand-primary': '#1DA57A' }
        }
    ),
    
)

